package eu.flatworld.android.ontop.db;

import java.io.Serializable;
import java.util.UUID;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "memo")
public class Memo implements Serializable {
	
	private static final long serialVersionUID = 1L;

	@DatabaseField(id = true)
	UUID id;
	
	@DatabaseField(canBeNull = false)
	MemoType memoType;
	
	@DatabaseField(canBeNull = false)
	String name;
	
	@DatabaseField(canBeNull = true, width = 4096)
	String text;
	
	public Memo() {
		id = UUID.randomUUID();
	}
	
	public String toString() {
		return name;
	}

	public UUID getId() {
		return id;
	}

	public void setId(UUID id) {
		this.id = id;
	}

	public MemoType getMemoType() {
		return memoType;
	}

	public void setMemoType(MemoType memoType) {
		this.memoType = memoType;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
	
	
}
